#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include "List.h"

void test1()
{
	ListNode* phead = ListCreate();
	ListPushBack(phead,70);
	ListPushBack(phead,80);
	ListPushFront(phead, 10);
	ListPushFront(phead,20);
	//ListPopBack(phead);
	//ListPopFront(phead);
	ListNode*  pos = ListFind(phead,10);
	if (pos)
	{
		ListErase(pos);

	}
	ListPrint(phead);
	ListDestory(phead);
	phead = NULL;
	ListPrint(phead);
}



int main()
{
	
	test1();

	return 0;
}

